<?php
namespace Common\Controller;

use Common\Model\Orders;
use Phalcon\Mvc\Controller as PhalconController;

/**
 * Home controller.
 * @RoutePrefix("", name="home")
 */
class IndexController extends PhalconController
{
    /**
     * Home action
     * @Route("/", methods={"GET"}, name="home")
     */
    public function indexAction()
    {
        echo 'asdasd';
        exit;
        $order = Orders::find([
            'conditions'=>"id = 1",
            'cache'=>true
        ]);
        return $order;
    }

    /**
     * Home action.
     * @return void
     * @Route("/test", methods={"GET"}, name="home")
     */
    public function testAction()
    {
        echo 'ASSS';
        //$this->di->get('Common')->Demo();
        $data = Orders::find("id < 100");
        //return $data;
    }
}

